Skip to main content

Save request payment

POST : http://<base_url>/digipay/v3/transaction/wallet_payment_request

This API is used to save the request payment

BODY PARAMS:-

ParameterTypeDescriptionValue
from_user_infoJsonit combines from_user user_id,user_type and userNameb9a4cbeeedd340509cb1ac628cae2973
to_user_idJsonit combines to_user user_id,user_type and userName100
currency_codeStringa unique currency code used to make payment request EX:INR,USD etcUSD
amountDoubleamount used to make payment100
wallet_idStringunique wallet_id assigned to the user's wallet to make payment requestb9a4cbeeedd340509cb1ac628cae2973
noteStringbrief description added at the time of making payment requesttest
currency_idStringunique currency_id assigned to the user's wallet to make payment requestb9a4cbeeedd340509cb1ac628cae2973
user_bank_idStringunique user_bank_id assigned to the user's wallet to make payment requestb9a4cbeeedd340509cb1ac628cae2973

HEADERS:-

ParameterTypeDescriptionValue
AuthorizationStringIt is a combination of type and token to authenticate user for the given tokenToken duik7309njdlkhdauhknksadhjkas986876sd873j
CompanyIDStringCompany_id is a unique primary id, that is represent company detail76bc712200ca444fa334f9e55e5fd7a8

Request Body:-

Request Example
curl --request POST \
--url http://192.168.1.102:8014/digipay/v3/transaction/wallet_payment_request \
--header 'Authorization: Token duik7309njdlkhdauhknksadhjkas986876sd873j' \
--header 'CompanyID: 7753ad6bd8cf48f5b1312fd21eb36588' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"currency_code": "USD",
"amount": 100,
"wallet_id": "b9a4cbeeedd340509cb1ac628cae2973",
"note": "test",
"currency_id": "b9a4cbeeedd340509cb1ac628cae2973",
"user_bank_id": "b9a4cbeeedd340509cb1ac628cae2973"
}
'

Response:-

Response 200(OK)

{
"success": 1,
"error": [],
"data": {
"message": "Payment request made successfully."
}
}
Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}

RESPONSES :-

Status CodeDescription
200OK
400BAD REQUEST
404NOT FOUND
500INTERNAL SERVER ERROR